<template>
  <div id="app">
    <header>
    <router-view name="header"/>
    </header>
    <main>
    <router-view/>
    </main>
    <footer>
    <router-view name="footer"/>
    </footer>
  </div>
</template>

<style lang="less">
*{padding: 0;margin: 0;}
html,body,#app{
  height: 100%;
  width: 100%;
}
#app{
  display: flex;
  flex-direction: column;
  width: 750px;
  header{
    width: 100%;
  }
  main{
    flex: 1;
    overflow: auto;
  }
  footer{
    background: #fff;
  }
}
</style>
